cluster=<%= @cluster %>
node=<%= @node_number %>
node_name=<%= @node_name %>
conninfo='host=<%= @host %> port=<%= @port %> user=<%= @username %> dbname=<%= @database %> sslmode=<%= @sslmode %> sslcompression=<%= @sslcompression %>'

<% if @upstream_node %>
upstream_node=<%= @upstream_node %>
<% end %>
use_replication_slots=<%= @use_replication_slots ? 1 : 0 %>
loglevel=<%= @loglevel %>
logfacility=<%= @logfacility %>
<% if @logfile %>
logfile=<%= @logfile %>
<% end %>
<% if @event_notification_command %>
event_notification_command='<%= @event_notification_command %>'
<% end %>
<% if @event_notifications %>
event_notifications='<%= @event_notifications %>'
<% end %>

pg_bindir=<%= @pg_bindir %>

service_start_command = <%= @service_start_command  %>
service_stop_command = <%= @service_stop_command  %>
service_restart_command = <%= @service_restart_command  %>
service_reload_command = <%= @service_reload_command %>
<% if @service_promote_command %>
service_promote_command = <%= @service_promote_command %>
<% end %>
<% if @rsync_options %>
rsync_options=<%= @rsync_options %>
<% end %>
<% if @ssh_options %>
ssh_options=<%= @ssh_options %>
<% end %>
<% if @daemon %>
failover = <%= @failover %>
promote_command = <%= @promote_command  %>
follow_command = <%= @follow_command  %>
monitor_interval_secs=<%= @monitor_interval_secs %>
master_response_timeout=<%= @master_response_timeout %>
reconnect_attempts=<%= @reconnect_attempts %>
reconnect_interval=<%= @reconnect_interval %>
<% if @priority %>
priority=<%= @priority %>
<% end %>
retry_promote_interval_secs=<%= @retry_promote_interval_secs %>
witness_repl_nodes_sync_interval_secs=<%= @witness_repl_nodes_sync_interval_secs %>
<% end %>

<% if @pg_ctl_options %>
pg_ctl_options=<%= @pg_ctl_options %>
<% end %>
<% if @pg_basebackup_options %>
pg_basebackup_options=<%= @pg_basebackup_options %>
<% end %>
<% if @barman_server %>
barman_server=<%= @barman_server %>
<% end %>
<% if @barman_config %>
barman_config=<%= @barman_config %>
<% end %>
<% if @restore_command  %>
restore_command = <%= @restore_command %>
<% end %>
